package com.taihua.faxmail.gol;

import java.sql.ResultSet;
import java.sql.SQLException;

import control.database.DataBase;

public class Bind {
	public   String [] bindPhs_num(String phs_num,String username,String domainName,String ctrl_type,String bind)    
	{
		String[] strs = new String[2];
		  DataBase db=new DataBase();
		   ResultSet rst= null;
		   rst=db.executeQuery("sp_gol_bindphs_num '"+phs_num+"','"+username+"','"+domainName+"','"+ctrl_type+"','"+bind+"'");
		   try {
			while(rst.next()){
				   	strs[0]=rst.getString("return");
					strs[1]=rst.getString("msg");
			   }
		
		
		   } catch (SQLException e) {
			
			}
		   finally{
			   try {
				rst.close();
			} catch (SQLException e) {
			}
			   db.closeStmt();
			   db.closeConn();
			   
		   }
	return   strs;   
	}  
public static void main(String [] args){
	String[] strs = new String[3];
	try {
		strs=new Sys_log().WriteLog("WEB","92243","NIHAO");
		System.out.println(strs[0]+"--"+strs[1]+"--");
	} catch (NumberFormatException e) {
	}
}
}
